package learningThread.juc;

import java.util.concurrent.CountDownLatch;

public class MyRunnable implements Runnable{

    private CountDownLatch coutDownLatch;

    public MyRunnable(CountDownLatch coutDownLatch) {
        this.coutDownLatch = coutDownLatch;
    }

    @Override
    public void run() {
        System.out.println("线程:"+Thread.currentThread().getName()+"已经到达,"+System.currentTimeMillis());
        coutDownLatch.countDown();
    }
}
